const db = require('../db/index')
exports.getHear=(req,res)=>{
    const sql = 'insert into ev_hear set ?'
    const act = {
        author_id:req.body.author_id,
        content:req.body.content,
        content_id:req.body.content_id
    }
    db.query(sql,act,(err,results)=>{
        if(err){
            return res.cc(err)
        }
        res.send({
            status:0,
            message:'哈哈哈哈哈',
            data:results
        })
    })
}
exports.getHand=(req,res)=>{
    const sql = 'select * from ev_hear  '
    const art = {
        author_id:req.body.author_id,
        content_id:req.body.content_id
    }
    db.query(sql,art,(err,results)=>{
        if(err){
            return res.cc(err)
        }
        res.send({
            status:0,
            message:'啦啦啦啦',
            data:results
        })
    })
}